package com.android.pos;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class POSSettings extends Activity {
	
	private Button btn_newitem;
	private Button btn_newtable;
	
    private static final String Flag = "POSSettings";	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);      
        setContentView(R.layout.possettings);
        Log.d(Flag,">>> first loading or refresh POSSettings...");        
        
        btn_newitem = (Button)findViewById(R.id.btn_newitem);
        btn_newitem.setOnClickListener(new Button.OnClickListener(){
        	
			public void onClick(View arg0) {
	    		Intent intent = new Intent(POSSettings.this, ItemList.class);
	    		startActivity(intent);
				
			}        	
        });
        
        btn_newtable = (Button)findViewById(R.id.btn_newtable);
        btn_newtable.setOnClickListener(new Button.OnClickListener(){
        	
			public void onClick(View arg0) {
	    		Intent intent = new Intent(POSSettings.this, TableList.class);
	    		startActivity(intent);
				
			}        	
        });        
    }
    
}
